home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / WWIV Mods / WWIVMOD.ZIP / XMSEMS.MOD < prev    next >
Encoding:
Text File  |  1991-12-13  |  2.5 KB  |  61 lines

  1. -----------------------------------------------------------------------------
  2.  
  3. Name: XMSEMS.MOD
  4. Auth: Tolkien 1@3456
  5. Date: December 13, 1991
  6. Info: WWIV, v4.20 (may work with prior releases though)
  7. Diff: Easy
  8. Req : BC++ 2.0 (unsure as to whether TC++ supports the two necessary
  9.       functions (_OvrInitExt() and _OvrInitEms())
  10.  
  11. Description: This modification will allow WWIV to make use of extended
  12.              memory for its overlays. Failing the detection of XMS
  13.              memory, it will try to grab 512K of expanded memory for
  14.              the same purpose. If you don't have either type of memory
  15.              then do not install this modification.
  16.  
  17. -----------------------------------------------------------------------------
  18.  
  19. Step One:
  20.  
  21. Load up XINIT.C and search for these lines:
  22.  
  23.   screenbottom=defscreenbottom;       /* Search */
  24.   screenlen=160*(screenbottom+1);     /* Search */
  25.  
  26. Immediately after those two lines, add these two lines:
  27.  
  28.   if (_OvrInitExt(0,0)!=0)            /*   Add  */
  29.     (_OvrInitEms(0,0,32));            /*   Add  */
  30.  
  31. -----------------------------------------------------------------------------
  32.  
  33. Step Two:
  34.  
  35. Now you have some choices. I recommend overlaying everything except COM.C,
  36. CONIO.C, and UTILITY.C (and ESM.C if you are using ESM v2.00 or STRINGS.C
  37. if you are using a prior version). You may find that this severely degrades
  38. performance and you may notice no such thing.
  39.  
  40. If it *does* degrade performance, then you can either un-overlay one or
  41. more of the following:  BBSUTL.C, BBSUTL1.C, MSGBASE.C, and/or MSGBASE1.C.
  42. A better solution is to move the printfile() function to the bottom of
  43. COM.C (which shouldn't ever be overlaid), as well as checka() and pla(). This
  44. is what I've done and the board works just fine, and I have gained 48K of
  45. memory at runtime, which isn't a *huge* amount but is most assuredly a
  46. noticeable amount and was definitely worthwhile.
  47.  
  48. Moving those functions to the bottom of COM.C is a simple matter of block-
  49. copying each function from its original source file to the bottom of
  50. COM.C, deleting it from the original file, and updating FCNS.H to reflect
  51. the change. If you can't do this part on your own, then you should probably
  52. not be messing around with the code yourself anyway.
  53.  
  54. -----------------------------------------------------------------------------
  55.  
  56. Step Three:
  57.  
  58. Recompile and enjoy the extra memory.
  59.  
  60. -----------------------------------------------------------------------------
  61.